import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const path = require('path')
export default defineConfig({
  base: "./",//公共基础路径 打包路径
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src')
    }
  },
  server: {
    open: true,
    proxy: {
      '/api': {
        target: 'http://shop.datong0.com',
        changeOrigin: true,
      }
    },
  },
  plugins: [vue()]
})
